package com.pojo;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;

@Entity
public class Contact {


	private int contactId;
	private String firstName;
	private String sname;
	private String knowAs;
	private String officePhone;
	private String mobilePhone;
	private String homePhone;
	private String emailAddr;
	private String contactType;
	private String bestContactMethod;
	private String jobRole;
	private String workBase;
	private String jobTitle;
	private String isActive;
	private String managerName;
	private String fullName;
	

	
	public Contact() {
	}
	
	

	public Contact(int contactId, String firstName, String sname,
			String knowAs, String officePhone, String mobilePhone,
			String homePhone, String emailAddr, String contactType,
			String bestContactMethod, String jobRole, String workBase,
			String jobTitle, String isActive, String managerName,
			String fullName) {
		super();
		this.contactId = contactId;
		this.firstName = firstName;
		this.sname = sname;
		this.knowAs = knowAs;
		this.officePhone = officePhone;
		this.mobilePhone = mobilePhone;
		this.homePhone = homePhone;
		this.emailAddr = emailAddr;
		this.contactType = contactType;
		this.bestContactMethod = bestContactMethod;
		this.jobRole = jobRole;
		this.workBase = workBase;
		this.jobTitle = jobTitle;
		this.isActive = isActive;
		this.managerName = managerName;
		this.fullName = fullName;
	}



	@Id
	@GeneratedValue
	
	public int getContactId() {
		return contactId;
	}
	@OneToMany(targetEntity = Contact.class, mappedBy = "contactId", cascade = javax.persistence.CascadeType.ALL, fetch = FetchType.LAZY)
	public void setContactId(int contactId) {
		this.contactId = contactId;
	}

	public String getFirstName() {
		return firstName;
	}

	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	public String getSname() {
		return sname;
	}

	public void setSname(String sname) {
		this.sname = sname;
	}

	public String getKnowAs() {
		return knowAs;
	}

	public void setKnowAs(String knowAs) {
		this.knowAs = knowAs;
	}

	public String getOfficePhone() {
		return officePhone;
	}

	public void setOfficePhone(String officePhone) {
		this.officePhone = officePhone;
	}

	public String getMobilePhone() {
		return mobilePhone;
	}

	public void setMobilePhone(String mobilePhone) {
		this.mobilePhone = mobilePhone;
	}

	public String getHomePhone() {
		return homePhone;
	}

	public void setHomePhone(String homePhone) {
		this.homePhone = homePhone;
	}

	public String getEmailAddr() {
		return emailAddr;
	}

	public void setEmailAddr(String emailAddr) {
		this.emailAddr = emailAddr;
	}

	public String getContactType() {
		return contactType;
	}

	public void setContactType(String contactType) {
		this.contactType = contactType;
	}

	public String getBestContactMethod() {
		return bestContactMethod;
	}

	public void setBestContactMethod(String bestContactMethod) {
		this.bestContactMethod = bestContactMethod;
	}

	public String getJobRole() {
		return jobRole;
	}

	public void setJobRole(String jobRole) {
		this.jobRole = jobRole;
	}

	public String getWorkBase() {
		return workBase;
	}

	public void setWorkBase(String workBase) {
		this.workBase = workBase;
	}

	public String getJobTitle() {
		return jobTitle;
	}

	public void setJobTitle(String jobTitle) {
		this.jobTitle = jobTitle;
	}

	public String getIsActive() {
		return isActive;
	}

	public void setIsActive(String isActive) {
		this.isActive = isActive;
	}

	public String getManagerName() {
		return managerName;
	}

	public void setManagerName(String managerName) {
		this.managerName = managerName;
	}

	public String getFullName() {
		return fullName;
	}

	public void setFullName(String fullName) {
		this.fullName = fullName;
	}

	
	
}
